package com.zz.parkingsystem.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 微信配置表
 * @TableName t_wechat_set
 */
@Data
public class WechatSet implements Serializable {
    /**
     * 微信配备编号
     */
    private Integer wcId;

    /**
     * 第三方参数表id
     */
    private Integer paraId;

    /**
     * 参数编号
     */
    private String wcNo;

    /**
     * 微信支付商户
     */
    private String wcCommercialTenant;

    /**
     * 微信支付AppId
     */
    private String wcCommercialAppId;

    /**
     * 微信商户账户
     */
    private String wcCommercialAccount;

    /**
     * 微信支付密钥
     */
    private String wcPayKeys;

    /**
     * 微信商户密钥
     */
    private String wcCommercialKeys;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatSet other = (WechatSet) that;
        return (this.getWcId() == null ? other.getWcId() == null : this.getWcId().equals(other.getWcId()))
            && (this.getParaId() == null ? other.getParaId() == null : this.getParaId().equals(other.getParaId()))
            && (this.getWcNo() == null ? other.getWcNo() == null : this.getWcNo().equals(other.getWcNo()))
            && (this.getWcCommercialTenant() == null ? other.getWcCommercialTenant() == null : this.getWcCommercialTenant().equals(other.getWcCommercialTenant()))
            && (this.getWcCommercialAppId() == null ? other.getWcCommercialAppId() == null : this.getWcCommercialAppId().equals(other.getWcCommercialAppId()))
            && (this.getWcCommercialAccount() == null ? other.getWcCommercialAccount() == null : this.getWcCommercialAccount().equals(other.getWcCommercialAccount()))
            && (this.getWcPayKeys() == null ? other.getWcPayKeys() == null : this.getWcPayKeys().equals(other.getWcPayKeys()))
            && (this.getWcCommercialKeys() == null ? other.getWcCommercialKeys() == null : this.getWcCommercialKeys().equals(other.getWcCommercialKeys()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getWcId() == null) ? 0 : getWcId().hashCode());
        result = prime * result + ((getParaId() == null) ? 0 : getParaId().hashCode());
        result = prime * result + ((getWcNo() == null) ? 0 : getWcNo().hashCode());
        result = prime * result + ((getWcCommercialTenant() == null) ? 0 : getWcCommercialTenant().hashCode());
        result = prime * result + ((getWcCommercialAppId() == null) ? 0 : getWcCommercialAppId().hashCode());
        result = prime * result + ((getWcCommercialAccount() == null) ? 0 : getWcCommercialAccount().hashCode());
        result = prime * result + ((getWcPayKeys() == null) ? 0 : getWcPayKeys().hashCode());
        result = prime * result + ((getWcCommercialKeys() == null) ? 0 : getWcCommercialKeys().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", wcId=").append(wcId);
        sb.append(", paraId=").append(paraId);
        sb.append(", wcNo=").append(wcNo);
        sb.append(", wcCommercialTenant=").append(wcCommercialTenant);
        sb.append(", wcCommercialAppId=").append(wcCommercialAppId);
        sb.append(", wcCommercialAccount=").append(wcCommercialAccount);
        sb.append(", wcPayKeys=").append(wcPayKeys);
        sb.append(", wcCommercialKeys=").append(wcCommercialKeys);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}